The New Jedi Order a different policy on marriage from the old Order; under the leadership of Luke Skywalker, the Jedi were allowed to marry and Skywalker himself married Mara Jade.
When Luke formed the New Jedi Order, it was years after his marriage and, as Chad mentioned in the comments, he felt love was an important part of the the light side. Many of the masters of the new order were also married and many had children.
The Jedi Order did not permit Jedi to marry due to a prohibition on possessive attachment that could lead to the dark side and on Chandrila many got married at the age of fifteen.
In Legends material, it is said that the Jedi of old were against the concept of any form of emotional attachment, which means marriage was forbidden. Though, they did make exceptions depending on species.
This is the most well-known of the Jedi rules. Love leads to attachment and attachment leads to strong emotions, which are the path to the Dark Side of the Force. Because of this, Jedi are forbidden to fall in love. This, of course, doesn't stop Anakin Skywalker from falling in love with Padmé.
Although the 2002 film Star Wars: Episode II Attack of the Clones established that the Jedi Order members could not marry or have children, Star Wars creator George Lucas explained that despite their monastic regime, the Jedi were permitted to have sexual intercourse as long they did not form attachments.
George Lucas has clarified this. He says that what's forbidden is for them to have possessive relationships or develop attachments. That said, Jedi Knights can reproduce. They are just not allowed to build families.
Mara Jade Skywalker is a fictional character in the Star Wars franchise. She appears in the now non-canon Legends series as the wife of Luke Skywalker and mother of Ben Skywalker.
“Contrary to popular belief,” the tweet reads, “George Lucas says Jedi are allowed to have sex[.] 'Jedi Knights aren't celibate – the thing that is forbidden is attachments – and possessive relationships'.”
Early Jedi Practices and the Expanded Universe
They served as the guardians of the Republic since its foundation. It wasn't until around 4,000 BBY, however, that the Jedi began to forbid marriage and attachment.
A Jedi who follows the light side of the force but operates outside of the Jedi Council's control or defies their rulings. This means that a Grey Jedi does not have to follow the Jedi Council's strict rules on attachment, they can fall in love and get married.
Obi-Wan Kenobi and Siri Tachi fell in love, but chose to separate and remain true to the Jedi Code, while T'ra Saa and Tholme entered a clandestine relationship but never married.
Like all Cereans, Mundi practiced polygamy due to the 1-to-20 male-to-female ratio among his species. Mundi first married Shea, his bond-wife, and later married four honor-wives, including Mawin.
In the legends, Luke had several love interests cross his path. Undoubtedly, his greatest love was with a character named Mara Jade. Mara is a strong character as a part of the expanded universe of the Star Wars Legends series of novels.
Despite Vader's seeming loyalty to the Emperor, Palpatine wanted to replace his servant with a new apprentice, while Vader plotted to overthrow the Emperor so he could rule the galaxy with his son. In the end, Luke surrendered himself to Vader on the forest moon of Endor.
Of course, any romantic feelings between the pair disappeared completely in Return of the Jedi, which turned Luke and Leia from potential lovers to siblings in one fell swoop. It was a soft retcon that effectively erased any and all drama the love triangle between Luke, Leia, and Han might have presented.
In the Jedi Order, emotional attachment and possession were forbidden because it was believed they could lead to jealousy and fear of loss, and ultimately the dark side of the Force; for that reason, Jedi were not allowed to marry.
Jedi Master Ki-Adi-Mundi was the most famous member of the family. Due to the low Cerean birthrate, he was allowed by the other Jedi to follow the Cerean custom of polygamous marriage—he had four honor wives and seven daughters.
They probably refused to. Attachments were dangerous for both Jedi and Sith. A spouse could make a Jedi mentally put them first. Also their loss would invite anger and the need for revenge in their hearts.
Although Obi-Wan and Satine never married or became an official couple, there was an undeniable romantic connection between the two. In Star Wars: The Clone Wars, Obi-Wan told Satine he would have left the Jedi Order if she had asked him to stay. Satine also told Obi-Wan that she had always loved him.
Han Solo marries Princess Leia and they have three children: twins named Jacen and Jaina, and a younger son named Anakin. Luke reestablishes the Jedi Order, marries a non-movie (but fan favorite) redheaded Force-wielder named Mara Jade, and they have a son, Ben Skywalker (named in honor of Obi-Wan “Ben” Kenobi).
Having refounded the Jedi Order and trained several new Jedi including Leia, Luke eventually marries an enemy-turned-ally Mara Jade, and they have a son named Ben, who was voted the 40th top Star Wars character by IGN and the 6th top Star Wars Expanded Universe character by UGO Networks.
During one of these missions she would break the Jedi Code's rule of attachment by falling in love with Darman, RC-1136, a clone commando in Omega Squad, and becoming pregnant with his child, Venku Skirata. The two would later marry in the traditional Mandalorian way shortly before her death in 19 BBY.
Senator Padmé Amidala of the planet Naboo became pregnant during the Clone Wars with her husband, Jedi Knight Anakin Skywalker, as the father.
She planned to have the baby on Naboo to avoid public scrutiny and consequent scandal that would have killed her career. While on Coruscant, she kept a low profile and wore very baggy clothes (i.e. pompous Senatorial robes). The general public did not know she was pregnant.