They beat rival bids from Algeria and Ghana in a vote by the Confederation of African Football's executive committee at a meeting in Cairo.
Gabon replaces war-torn Libya, who withdrew last year as 2017 hosts because of the civil conflict raging in the country.
Africa Cup of Nations
Egypt paired with Nigeria in tough qualifier
08/04/2015 AT 15:30
Africa Cup of Nations
CAF poised to choose 2017 African Nations Cup host
07/04/2015 AT 10:38
Africa Cup of Nations
CAS overturns Morocco's 2017 Nations Cup suspension
02/04/2015 AT 14:52