But it has a small majority and its formation was as messy as Thai politics can be: days of haggling and inter-party defections and a moment of farce when, within minutes of each other, both Mr Chuan and a rival each declared himself to have a parliamentary majority.