Everyone was surprised that the famous actor had very little money when he died.
Everyone was surprised that the famous actor had very little money when he died.
-> The famous actor.....................................
The famous actor had very little money when he died, which surprised everyone/which made everyone surprised