after frederick henry's death in 1788, the male line of brandenburg-schwedt became extinct and their appanage territories reverted to the king of prussia. for a few years, beginning in 1794, the castle of schwedt was the residence of king frederick william ii of prussia's second son, prince frederick louis charles of prussia. the last schwedt heiress elisabeth louise, daughter of margrave frederick william, died in 1820.