Complex sentence: Martinez was imprisoned again by royal order in 1395, and although he was quickly released, he died soon after, leaving his fortune to a hospital he had founded in San Maria.
Split into simpler sentences: Martinez was imprisoned again by royal order in 1395, though he was quickly released. He died not long there after, leaving his fortune to a hospital he had founded in San Maria.