Why `ifndef and `define are used together?

Thanks for you guys, the information provided really helpful~ :D