The First Fitna

Can anyone clarify this concept, I've been wondering over this war between Aisha um al mumeen. (RA) , Fatima (RA), Abu Bakr (RA), Uthman (RA), Muawiya (RA), and Ali (RA) and his family. Why did they destroy the caliphate? Weren't they friends before the prophet (saw) died?