Top US comedy How I Met Your Mother has been renewed for a ninth season by American network CBS.

The renewal comes as a surprise as all the talk in the industry was that the show would end as as negotiations with the cast and creators were difficult, particularly with star Jason Segel.

The renewal also means the hit comedy will hit its landmark 200th episode towards the end of next season.

Given that Segel is still busy balancing the show with a successful film career, it's entirely possible that How I Met Your Mother season 9 will be its last.

If that's the case, odds are it will be decided early on so the creators can plan accordingly. That's been the recent trend with shows such as Gossip Girl, Fringe, Chuck and 30 Rock.