U.K. Prime Minister Boris Johnson survived a no-confidence vote Monday despite about 40% of lawmakers in his own Conservative party voting to get rid of him.

Of the 359 members of parliament who voted on Monday, 211 voted for Johnson to remain in power and 148 voted to say they did not have confidence in the prime minister.

While this is a victory of sorts for Johnson, the number of those who opposed him is far higher than most analysts had expected.

To put this in perspective, Johnson's predecessor, Theresa May, survived a no-confidence vote in December 2018 in which 117 Conservative Party lawmakers voted against her. 

By July the next year, after her party suffered defeats in European parliamentary elections, she stepped down.

Johnson is coming off an ignominious distinction: he recently became the first sitting prime minister officially found to have broken the law, due to his flouting of his own government's COVID-19 restrictions.

And on Friday, he was loudly booed when he arrived at St Paul's Cathedral for a service of thanksgiving marking Queen Elizabeth II's Platinum Jubilee.

Johnson has long been seen as an entertaining cheerleader for his country as well as a person who sometimes breaks the rules.