A male police officer. Often used in casual or informal contexts, similar to English 'cop' but less slangy. The more formal term is 警察官 (けいさつかん).
That policeman was very kind.
A policeman is directing traffic.
Borrowed from English 'policeman'. The exact date of borrowing is uncertain, but it likely entered Japanese in the 20th century.