Obama was unable to close Guantanamo Bay due to political opposition and legal challenges that arose after he took office, despite initially promising to shut it down within a year. By the end of his presidency, he had reduced the number of detainees but faced significant congressional restrictions that hindered further action.