Republican U.S. Rep. Peter King has defeated Democratic challenger Liuba Grechen Shirley, a first-time candidate who had hoped to ride a "blue wave" of opposition to President Donald Trump into office.

King's victory Tuesday will return him to Congress for a 14th term. He is New York's longest-serving Republican, representing parts of Long Island since 1993.

A hard-liner on issues like crime and immigration, King has campaigned on a reputation for bipartisanship on other issues, like supporting health programs for Sept. 11 rescue and recovery workers.

His campaign included television ads featuring support from a woman whose daughter was killed by members of the MS-13 street gang.

His opponent, Grechen Shirley, criticized King's opposition to abortion rights and his support of Trump's ban on travel from certain, mostly Muslim nations.