A driver can effectively unlap themselves during a race by driving faster than the cars ahead of them, ideally during a caution period or by using strategic pit stops to gain track position. This allows them to pass the cars in front and get back on the lead lap.