A new coalition has been formed after the dramatic vote.