Zaki-ur-Rehman Lakhvi
Zakiur Rehman Lakhvi. (File picture)Reuters File

A court in Pakistan on Thursday ordered the immediate release of 26/11 Mumbai terror attack's alleged mastermind Zaki-ur-Rehman Lakhvi.

The Lahore High Court declared Lakhvi's detention illegal, Geo TV reported.

The Punjab government last month detained Lakhvi before he could be released from jail after a court ordered him to be freed.

Lakhvi is accused of planning the terror mayhem in Mumbai that left 166 people killed and about 300 injured in 2008.