Tens of thousands of people are attending the funeral in New York of Rafael Ramos, one of the two policemen shot dead a week ago.
Vice-President Joe Biden praised the "finest police department in the world" at the service, attended by police forces from across the US and Canada.
Mr Ramos and Wenjian Liu were shot after weeks of anti-police protests.
Police at the funeral again snubbed New York Mayor Bill de Blasio, who had appeared to back some of the protests.
Funeral details for Officer Liu have yet to be announced. Officials say it will be held when relatives arrive from China.
Telling the mourners Officer Ramos had been a "hero", Police Commissioner Bill Bratton announced he had promoted both officers posthumously to Detective First Grade.
New York Governor Andrew Cuomo also paid tribute to the dead officer as well as to the New York Police Department (NYPD).
'It affects everyone' "I believe that this great police force of this incredibly diverse city can and will show the nation how to bridge any divide," Vice-President Biden told the congregation at the Christ Tabernacle Church in Queens.
"You've done it before and you will do it again."
Officer Ramos, 40, had been studying to become a police chaplain and was described as "a man of great faith" by a pastor who knew him.
Commissioner Bratton, his voice choking with emotion, said: "Rafael Ramos was assassinated because he represented all of us."
The two police officers had been killed by a "madman", he continued, who had only been able to see two uniforms, not the people wearing them.
New York Governor Andrew Cuomo told mourners he had watched recent protests and seen "people hurling insults" directly in the face of the police officers, but the police continued doing their jobs.
When the Ramos family arrived for the service, the eldest son Justin, wearing his father's NYPD jacket, was hugged by a police officer. The policeman is also survived by his younger son Jaden and his wife Maritza.
Officer Dustin Lindaman of the Waterloo Police Department had flown from Iowa to attend the funeral.
"He's one of our brothers and when this happens, it affects everyone in law enforcement - it absolutely affects everyone," he told the Associated Press news agency.