Pursuant to an agreement signed by China and Portugal on 13 April 1987 , Macau became the Macau Special Administrative Region ( SAR ) of the People 's Republic of China on 20 December 1999 .