In The Flintstones Season 2 episode "House Guest" (original air date: November 17, 1961), the Rubbles move in with the Flintstones because an earthquake destroys their home.
A sudden tremor levels the Rubbles' house at 345 Cave Stone Road (or whatever the address was—Bedrock addresses are fluid). With nowhere else to go, Barney and Betty accept Fred and Wilma's offer to stay "until they get back on their feet."
Naturally, the "short visit" stretches into weeks. Fred's patience frays as Barney's habits (snoring, eating, borrowing without asking) grate. Wilma and Betty try to mediate. The episode climaxes with Fred faking a terminal illness to guilt Barney into leaving—a classic sitcom misunderstanding resolved when the truth comes out and the Rubbles' new house is revealed to be ready.
"House Guest" is a template for countless "friends become roommates" sitcom plots that followed. It showcases the series' strength: taking a universal friction (hospitality vs. boundaries) and filtering it through Stone Age absurdity—rock puns, animal appliances, and all.