- Protect the people from dangers
- Enforce the Ruling class's preferences upon the masses.
I think that in the modern world, it is almost invariably B, rather than A that is the primary function of police. However, I think that almost the entire conservative and minarchist pro-police position assumes that the answer is A. Calling out the distinction might help clarify some things.