Which country are we talking about where that is illegal? In most countries it is legal to marry a person of 16, 17, 18, 19. Even younger. Some require parental consent sure. And it is a legal contract as it defines ownership and inheritance but in most developed countries it is not even a requirement. Living together and raising children does not require marriage.