Necessity is the mother of invention.



Meaning:
If you really need to do something you will find a way. In other words, people can be very creative when they have to be.