Adjoining the palace is the magnificent temple dedicated in 1564 by King Mahendra Malla to Taleju.
The temple was dedicated to Taleju for valiant war achievements. 
mnli hypothesis: The temple was dedicated to Taleju for valiant war achievements.  premise: Adjoining the palace is the magnificent temple dedicated in 1564 by King Mahendra Malla to Taleju.