Maryland Gov. Larry Hogan (R) said he will attend Donald Trump’s presidential inauguration. (Gail Burton/AP)

Maryland Gov. Larry Hogan (R) will be a guest at Donald Trump’s inauguration, despite disavowing the Republican president-elect during his bid for the White House and refusing to vote for him.

Hogan’s office said Friday that the governor and first lady Yumi Hogan received an invitation to the Jan. 20 event and that they “look forward to attending.”

The governor didn’t vote for either of the major parties’ presidential nominees this year, instead writing in his father, an 88-year-old former congressman and Prince George’s County Executive, for the job.

During the GOP primary, Hogan endorsed New Jersey Gov. Chris Christie, a close friend. But after Christie left the race and backed Trump, Hogan declined to pick another candidate to support, saying he was “disgusted with national politics.”

Other prominent Maryland Republicans supported Trump, including U.S. Rep. Andy Harris and state House Minority Whip Kathy Szeliga. Both backed him only after he won the GOP nomination.

Hogan spokeswoman Amelia Chasse said Friday that the governor plans to work closely with the new administration on issues including economic development and transportation projects.

“As Governor Hogan has repeatedly said following the election, he is committed to working with the incoming Trump administration just as he has successfully worked with the Obama administration to promote what is in Maryland’s best interest,” Chasse said.

The Baltimore Sun first reported Hogan’s plan to attend the inauguration.

Hogan, a businessman who had never held another elected office, won the governorship in 2014 with support from many Democrats and independents. Polls show that he is highly popular across party lines in the state, with his approval rating springing to 71 percent in a September Washington Post-University of Maryland survey.

Trump has been overwhelmingly unpopular in Maryland and received 35 percent of state’s vote in the general election, compared to nearly 61 percent for Democratic candidate Hillary Clinton.

Seventy-five percent of respondents in the Post-U-Md. poll said they approved of Hogan rejecting Trump, including 43 percent of Republicans.