Highway Code Rule 162
Before overtaking you should make sure
the road is sufficiently clear ahead
road users are not beginning to overtake you
there is a suitable gap in front of the road user you plan to overtake.
Test yourself on the Highway Code with practice questions.
Start practising