Why `ifndef and `define are used together?

sorry, I didn’t get it. Can you please elaborate it.