The Supreme Court on Friday referred the Ram Janmabhoomi-Babri Masjid land dispute case for mediation by a panel headed by retired apex court judge F M I Kalifulla to explore the possibility of an amicable settlement and gave it eight weeks to complete its proceedings.