Neuroplasticity, your brain’s ability to change & learn, is a two part process:
1) Learning is triggered by focused attention, especially to novel, emotionally laden or otherwise meaningful events.
2) Actual brain rewiring occurs during sleep, and other forms of deep rest.