SEOUL, South Korea (CNN) -- South Korea bade farewell to former President Kim Dae-Jung Sunday in a ceremony attended by thousands of citizens, dignitaries and politicians.



South Korean Buddhist monks pray in front of a portrait of former  president Kim Dae-jung during his funeral Sunday.



The solemn Sunday afternoon ceremony was held outside parliament, with a large portrait of Kim placed on a shrine surrounded by flowers.



The funeral followed six days of mourning for Kim, who died Tuesday of a heart failure.



Kim's age at the time of his death was in dispute, with some reports saying he was 85 while others placing it at 83.



Kim's state funeral was the second such ever given in the country, South Korea's Yonhap news agency said.



Another president, Park Chung-hee, was also accorded a state funeral after his assassination while in office in 1979.



Kim -- who was president from 1998 to 2003 -- won the Nobel Peace Prize in 2000 for trying to foster better relations with North Korea.



The watershed moment of his presidency came in June 2000 when he met North Korean leader Kim Jong Il, becoming the first South Korean leader to do so since the Korean War unofficially ended in 1953.



But rapproachment talks between the two sides hit a wall after conservative South Korean President Lee Myung-bak took office in early 2008 with a tougher stance toward the North than Kim and his successor, Roh Moo-hyun.



Ahead of the funeral, President Lee met with a visiting North Korean delegation, who delivered a message from Kim Jong Il expressing hopes for improved relations between the two countries.



Lee, in turn, reiterated his government's firm stance, presidential spokesman Lee Dong-kwan was quoted as saying by Yonhap.



But in a possible sign that icy relations between the two rival nations are nevertheless thawing, South Korean Unification Minister Hyun In Taek met with North Korean unity leader Kim Yang Gon on Saturday.



It was the first high-level, cross-border contact in nearly two years.



The meetings between officials of the two Koreas are in stark contrast to the tense public statements they made about each other earlier this year.



Tensions between the two were heightened in July when North Korea launched seven short-range missiles toward the Sea of Japan.



The launches came after North Korea conducted a nuclear test on May 25 and threatened the United States and South Korean ships near its territorial waters.



South Korea condemned the action, calling the launches "provocative" and "unwise."



CNN's Jake Perez contributed to this report.
What did he win nobel peace prize for? Who did Kim foster better relations with? What is the North Korean delegation mourning? Who is former president of South Korea? Who did South Korea bid farewell to? When did Kim win the Nobel Peace Prize? Which president did South Korea bid farewell to? Where will the North Korean delegation mourn Kim? What did Kim win?
trying to foster better relations with North North former President Kim Dae-Jung Kim Dae-Jung former President Kim Dae-Jung 2000 Kim Dae-Jung outside parliament, the Nobel Peace Prize in 2000
question: What did he win nobel peace prize for?, answer: trying to foster better relations with North | question: Who did Kim foster better relations with?, answer: North | question: What is the North Korean delegation mourning?, answer: former President Kim Dae-Jung | question: Who is former president of South Korea?, answer: Kim Dae-Jung | question: Who did South Korea bid farewell to?, answer: former President Kim Dae-Jung | question: When did Kim win the Nobel Peace Prize?, answer: 2000 | question: Which president did South Korea bid farewell to?, answer: Kim Dae-Jung | question: Where will the North Korean delegation mourn Kim?, answer: outside parliament, | question: What did Kim win?, answer: the Nobel Peace Prize in 2000