Richard Milhous Nixon was born on January 9, 1913 in Yorba Linda, California, in a house that was built by his father. His parents were Hannah (Milhous) Nixon and Francis A. Nixon. His mother was a Quaker, and his father converted from Methodism to the Quaker faith. Nixon was a descendant of the early American settler, Thomas Cornell, who was also an ancestor of Ezra Cornell, the founder of Cornell University, as well as of Jimmy Carter and Bill Gates.

Nixon laid the groundwork for his overture to China before he became president, writing in Foreign Affairs a year before his election: "There is no place on this small planet for a billion of its potentially most able people to live in angry isolation." Assisting him in this venture was his National Security Advisor and future Secretary of State, Henry Kissinger, with whom the President worked closely, bypassing Cabinet officials. With relations between the Soviet Union and China at a nadir--border clashes between the two took place during Nixon's first year in office--Nixon sent private word to the Chinese that he desired closer relations. A breakthrough came in early 1971, when Chairman Mao invited a team of American table tennis players to visit China and play against top Chinese players. Nixon followed up by sending Kissinger to China for clandestine meetings with Chinese officials. On July 15, 1971, it was simultaneously announced by Beijing and by Nixon (on television and radio) that the President would visit China the following February. The announcements astounded the world. The secrecy allowed both sets of leaders time to prepare the political climate in their countries for the contact.  In February 1972, Nixon and his wife traveled to China. Kissinger briefed Nixon for over 40 hours in preparation. Upon touching down, the President and First Lady emerged from Air Force One and greeted Chinese Premier Zhou Enlai. Nixon made a point of shaking Zhou's hand, something which then-Secretary of State John Foster Dulles had refused to do in 1954 when the two met in Geneva. Over 100 television journalists accompanied the president. On Nixon's orders, television was strongly favored over printed publications, as Nixon felt that the medium would capture the visit much better than print. It also gave him the opportunity to snub the print journalists he despised.  Nixon and Kissinger met for an hour with Mao and Zhou at Mao's official private residence, where they discussed a range of issues. Mao later told his doctor that he had been impressed by Nixon, whom he considered forthright, unlike the leftists and the Soviets. He said he was suspicious of Kissinger, though the National Security Advisor referred to their meeting as his "encounter with history". A formal banquet welcoming the presidential party was given that evening in the Great Hall of the People. The following day, Nixon met with Zhou; the joint communique following this meeting recognized Taiwan as a part of China, and looked forward to a peaceful solution to the problem of reunification. When not in meetings, Nixon toured architectural wonders including the Forbidden City, Ming Tombs, and the Great Wall. Americans received their first glimpse into Chinese life through the cameras which accompanied Pat Nixon, who toured the city of Beijing and visited communes, schools, factories, and hospitals.  The visit ushered in a new era of Sino-American relations. Fearing the possibility of a Sino-American alliance, the Soviet Union yielded to pressure for detente with the United States. Answer this question using a quote from the following article:

What was he doing there
they discussed a range of issues.