Among the first public police forces established in colonial North America were the watchmen organized in Boston in 1631 and in New Amsterdam (later New York City) in 1647.
1 The first local modern police department established in the United States was the Boston Police Department in 1838, followed by the New York City Police Department in 1845. Early on, police were not respected by the community, as corruption was rampant.
2
1 Early police in the United States (Britannica)
2 Law enforcement in the United States (wikipedia)