This video demonstrates a protocol to enrich thymic epithelial cells (TECs) with density gradient for FACS isolation. It also shows the use of EAK16-II/EAKIIH6 peptides to promote the TEC aggregate formation. The microenvironments of EAK16-II/EAKIIH6 hydrogel provide the 3-D configuration necessary to maintain the survival and function of the TECs.