Built as villa for shogun Ashikaga Yoshimasa, who became a Zen monk and willed the property to the Rinzai Zen sect at his death in 1490.