Han Solo was frozen in carbonite. Carbon-freezing is an industrial process that encases highly pressurized gases inside solidified carbonite. Darth Vader decided to freeze Han Solo in carbonite as a test to see if Luke could be imprisoned in the same fashion. Han survived the process, but hibernation sickness left him temporarily blind. He was later freed by Princess Leia in Jabba’s palace.