The interaction of light with nanostructured materials provides exciting new opportunities for investigating classical wave analogies of quantum phenomena. A topic of particular interest forms the interplay between wave physics and chaos in systems where a small perturbation can drive the behavior from the classical to chaotic regime. Here, we report an all-optical laser-driven transition from order to chaos in integrated chips on a silicon photonics platform. A square photonic crystal microcavity at telecom wavelengths is tuned from an ordered into a chaotic regime through a perturbation induced by ultrafast laser pulses in the ultraviolet range. The chaotic dynamics of weak probe pulses in the near infrared is characterized for different pump-probe delay times and at various positions in the cavity, with high spatial accuracy. Our experimental analysis, confirmed by numerical modelling based on random matrices, demonstrates that nonlinear optics can be used to control reversibly the chaotic behavior of light in optical resonators.Deterministic chaos is characterized by exponential sensitivity to the initial conditions and is an ubiquitous phenomenon observed in different systems, including laser diodes, electronic circuits, fluids, chemical reactions, brains and beyond [1][2][3][4][5][6]. The dynamics of the order-to-chaos transition in physical systems has been studied in a variety of platforms [3,[7][8][9][10][11][12] and is of substantial importance, both for fundamental physics and practical applications including secure communication [13], random number generation [14], data storage [15,16], random lasers [17] and energy harvesting [18,19]. The transition from ordered to chaotic regimes is of particular relevance in the investigation of quantum chaos, which explores the relationship between quantum mechanics and classical chaos. Although there are many theoretical studies in the quantum order-to-chaos transition [4,15,[20][21][22][23], experimental demonstrations are hampered by the difficulty to control accurately the system parameters and are limited to a few examples, e.g. in rotational nuclei, intense laser beams and mesoscopic electron devices [24][25][26].The isomorphisms between Schrödinger and Maxwell equations allows to investigate quantum phenomena using classical waves. In this context, classical waves such as light or sound form a versatile playground for investigating effects of quantum transport, including long-range correlations and Anderson localization [27]. Classical waves can be studied in simple and compact systems that * adf10@st-andrews.ac.uk show order-to-chaos transitions and thus give further insight to such transitions in the quantum regime [28].Here, we experimentally demonstrate ultrafast orderto-chaos transitions in an integrated photonic system comprised of a square optical resonator based on siliconon-insulator (SOI) photonic crystal cavities (PCCs). These PCCs have been intensively studied and show a classical mode spectrum under normal conditions [18]. However, similar to ...