Answer
Shrines were maintained by local people for Zhuge Liang, a renowned military strategist and statesman of the Three Kingdoms period in China. These shrines served as places of worship and remembrance, honoring his legacy and contributions to the region. People visited these shrines to pay respects, seek guidance, and express gratitude for his wisdom and leadership.