Astronomers have come to recognize the benefits of photonics, often in combination with optical systems, in solving longstanding experimental problems in Earth-based astronomy. Here, we explore some of the recent advances made possible by integrated photonics. We also look to the future with a view to entirely new kinds of astronomy, particularly in an era of the extremely large telescopes.