What is the purpose of the family?
The family was created by God to cooperate with His Eternal Purpose.
Gen 1:27-28a
So God created man in His own image; in the image of God He created him; male and female He created them. Then God blessed them, and God said to them, “Be fruitful and multiply; fill the earth and subdue it; (…).