Ingrowns when shaving

I've been shaving for a while but my mum never really took me through everything so its more just trial and error. I keep getting ingrown hairs and I hate them and they're super uncomfortable. I think I might be doing something wrong. Can everyone share their shaving routines?? It would really help a lot. Thank you so much xx