An openly gay Maryland candidate for governor has just aired his political advertisement that features him kissing his husband in a move designed to 'p**s off' President Donald Trump.

State Senator Richard Madaleno first aired the 30-second ad on Thursday in the Washington area on the Fox News show 'Fox & Friends', which happens to a favorite of Trump's.

It was also posted on his campaign website and will continue to air across Maryland.

Scroll down for video

State Senator Richard Madaleno, who is a Maryland candidate for governor, released his ad on Thursday that features him kissing his husband Mark Hodge

The ad, which also features the couple's two children Katie and Jackson, was designed to 'p**s off' President Donald Trump

The ad includes the Maryland Democrat talking about how he plans to stand up to Trump and lists several things he has already done to 'infuriate' the President.

'What's the number one way I p**s off Donald Trump and the Republicans?' he asks before kissing his husband Mark Hodge on the lips.

He then says: 'Take that, Trump!'

The couple's two children, Katie and Jackson, are also featured in the ad as they sit on the front lawn outside their home.

The ad also includes Madaleno talking about how he has stood up to Trump's agenda by defending Planned Parenthood and supporting an assault weapons ban.

The ad includes the Maryland Democrat talking about how he plans to stand up to Trump and lists several things he has already done to 'infuriate' the President

The ad also includes Madaleno talking about how he has stood up to Trump's agenda by defending Planned Parenthood

It had a joint dig at Trump and Education Secretary Betsy DeVos when he spoke of his support for public schools

Gay rights activists have said it is the nation's first-ever political ad showing a same-sex couple kissing.

'June is LGBT Pride Month and I couldn’t think of a better time to release this ad,' Madaleno said in a statement.

'I am proud of my family, proud of my record of standing up for our progressive values and proud to be unflinching in standing up against hate. Love does truly trump hate.'

Madaleno is one of several candidates running in a crowded Democratic primary to challenge Republican Maryland Governor Larry Hogan.