How did the Japanese imperial court system of appointing government officials lead to the rise of the Fujiwara family?

write it in one in a half paragraph like a 7th grader

The Japanese imperial court system of appointing government officials played a crucial role in the rise of the Fujiwara family. During ancient times in Japan, the emperor had the power to choose individuals for important roles in the government. The Fujiwara family, known for their intelligence and capability, strategically married off their daughters to emperors or powerful noble families. By doing so, they formed strong alliances and gained influence in the imperial court. As a result, many Fujiwara men were appointed as high-ranking officials, holding key positions within the government. This allowed the family to have a significant impact on decision-making processes and ultimately led to their rise in power and influence.