Castro underwent surgery for intestinal bleeding, and on 31 July 2006, delegated his presidential duties to Raúl Castro.