Ties between the two forces must now intensify in order to form a new government - but their past relationship has been bumpy.