even the idea of "declaring bankruptcy" is a modern regulated construct.
In medieval times, if you "declare bankruptcy" your family and dependents get sold into slavery and your wife is sold off to the highest bidder who will buy your debt.
In many previous times, if you couldn't pay debts you'd just be killed.