The floor of the carpal tunnel is formed of bones called the carpal bones. The roof consists of a thick ligament.