House Speaker Paul Ryan said in a press conference Thursday that President Donald Trump’s tweets going after a group of House conservatives was a way for him to express his frustration over lack of consensus on health care.

"It's very understandable that the president is frustrated that we haven't gotten to where we need to go because this is something we all said we would do," the Wisconsin Republican said about the promise Republicans made to repeal President Barack Obama's health care law. "So he is expressing his frustration. You all know that he does that in various forms including Twitter, and I understand his frustration."

Ryan was asked to respond to a tweet Trump sent Thursday morning, in which the president called out the House Freedom Caucus, a group of conservative Republicans who last week said they would not vote in favor of a bill that the White House backed to undo Obamacare. Ryan ended up pulling the bill.

The Freedom Caucus will hurt the entire Republican agenda if they don't get on the team, & fast. We must fight them, & Dems, in 2018! — Donald J. Trump (@realDonaldTrump) March 30, 2017

"The Freedom Caucus will hurt the entire Republican agenda if they don't get on the team, & fast," Trump tweeted. "We must fight them, & Dems, in 2018!"

Ryan said that about 90 percent of the Republican conference had supported the bill, but 10 percent did not. The legislation was ultimately pulled from the House floor last week because Republicans did not have enough votes to send it to the higher chamber. Some moderate Republicans also opposed the bill, saying they were concerned it would cause people to lose coverage.

"What I am encouraging our members to do is to keep talking to each other until we can get the consensus to pass this bill," Ryan said.

Ryan also spoke to a CBS interview that aired earlier in the day, in which he said he did not want Trump to turn to Democrats to cut a deal on health care.

"They aren't going to help us repeal Obamacare, that's my point," he said.