Necessity is the mother of invention

This proverb means that when people really need to do something, they will find a way to do it.

Example: When her pen had run out of ink, she used her lipstick to write a short note to her husband who was at work.