Al regresar, Al entrar construction question

I know that the preposition al is a contraction of a + el and understand constructions like to the man "al hombre". However my book, Complete Spanish Step by Step uses al + infinitive with seemingly little or no explanation. Does anyone have any insight on this?

submitted by /u/WhyYesIOwnRentals
[link] [comments]