Concept of photonics-based cognitive radio is proposed benefiting from broadband spectrum sensing ultrafast signal processing and high-efficient spectral resource allocation enabled by photonics. A demonstration of the photonics-based cognitive radar is performed.