Casino giant Caesars Entertainment struck a deal to sell itself to the owner of the Golden Nugget casino chain with Las Vegas embroiled in a downturn.

Caesars agreed to the purchase in a Thursday announcement.

Caesars Entertainment is being acquired for almost $6 billion by Fertitta, the company that owns Las Vegas’ Golden Nugget and chains like Rainforest Cafe and Morton’s.