A temple of Confucius or Confucian temple is a temple for the veneration of Confucius and the sages and philosophers of Confucianism in Chinese folk religion and other East Asian religions. They were formerly the site of the administration of the imperial examination in China and Vietnam and often housed schools and other studying facilities.
From Wikipedia