The Phils have won nine of ten and trail the N-L East-leading New York Mets by three games after trailing by eight and a-half on the second of June.
Newly acquired Tadahito Iguchi hit his first homer with Philadelphia. Aaron Rowand added a three-run drive for the Phillies.
Hamels is 12-and-5 with the win. He allowed one run on three hits in eight frames. Lilly, who had won his last six games, fell to 11-and-5.
Viewers with disabilities can get assistance accessing this station's FCC Public Inspection File by contacting the station with the information listed below. Questions or concerns relating to the accessibility of the FCC's online public file system should be directed to the FCC at 888-225-5322, 888-835-5322 (TTY), or firstname.lastname@example.org.