After the death of the king of Bosnia, Tvrtko I in 1391, the power of the Kingdom of Bosnia gradually declines and the region is taken over by the Kingdom of Croatia, the state and associated to the Kingdom of Hungary by a personal union.