Say you want to draw a shape in Adobe Illustrator

and you want to do it by drawing one picture, and then subtracting another from inside it.

Using the pen tool…
draw your outside image
draw your inside image

Go Window -> Path Finder

Select both paths

Select Minus front