Former New York City mayor Michael Bloomberg (Drew Angerer/Getty Images)

WASHINGTON  — Michael Bloomberg, who was elected mayor of New York City as a Republican, will speak at the Democratic National Convention to endorse Hillary Clinton for president.

Spokesman Marc LaVorgna says Bloomberg will make the endorsement speech Wednesday night.

The billionaire media mogul opted against running as a third-party candidate for fear it might siphon away votes from Clinton and help elect Republican Donald Trump.

Bloomberg has been sharply critical of Trump, and in particular of his fellow New Yorker's inflammatory rhetoric on immigration.

Bloomberg had previously been a Democrat before switching his party affiliation to Republican before his successful 2001 run for mayor. Bloomberg, who served three terms, later became an independent and a leading advocate for gun control.

His endorsement was first reported Sunday by The New York Times.

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.