A method and prosthesis is provided for percutaneous repair of an anatomical defect, such as an inguinal hernia. The method involves percutaneously accessing the inguinal canal of a patient. Following hernia reduction, if required, the hernia defect may be accessed and repaired percutaneously from within the inguinal canal. An implantable prosthesis may be percutaneously delivered into the inguinal canal. The prosthesis may be advanced along the inguinal canal from the percutaneous entry location to the defect site, where it may be deployed over and/or within the defect. A biocompatible foam material may be percutaneously delivered into the inguinal canal to reduce and/or repair the hernia defect. The foam may fill and solidify to in the canal to prevent abdominal viscera from reentering the canal. Ablative therapy may be performed within the inguinal canal to cause a fibrotic response resulting in scar tissue formation and/or tissue shrinkage that narrows the canal.