CLICKABLE Andrew Jackson 1829-37 Parents from Boneybefore, nearr Carrickfergus, Co Antrim, where a heritage centre pays tribute to his legacy. Parents from Boneybefore, nearr Carrickfergus, Co Antrim, where a heritage centre pays tribute to his legacy. Ulysses S Grant 1869-77 Visited his ancestral home in Dergenagh, Co Tyrone in 1878. It was the home of his maternal great-grandfather. John F Kennedy 1961-63 The most famous Irish American president, and the only Roman Catholic. His great-grandfather Patrick was from Dunganstown, Co Wexford. Ronald Reagan 1981-89 His great-grandfather Michael Regan was born in Ballyporeen in Co Tipperary, in 1829. Reagan visited in 1984 and gave a speech there. George W Bush 2001-09 The Bush family has distant 18th Century ancestors in both Rathfriland, in Co Down, and Co Cork, although they never made much of these links. Barack Obama 2009-present Researchers have traced Mr Obama's maternal family tree back to his great-great-great-great grandfather Joseph Kearney, a shoemaker.

Next month, Barack Obama will visit an Irish village where his great-great-great-great grandfather made shoes. He is thought to be the 22nd US president to have or claim Irish family, and most recent presidents have visited the Republic or Northern Ireland. Why?

A small village of fewer than 300 residents in County Offaly is about to welcome its most famous son.

Moneygall is gearing up for Obamamania on 23 or 24 May, when the president returns to the spot where in 1850 his ancestor Falmouth Kearney, son of shoemaker Joseph, packed his bags and headed off to the US.

Mr Obama's Irish connection, on his mother Ann Dunham's side, was unearthed in 2007 and the president announced the visit on St Patrick's Day this year.

Ever since President John F Kennedy was mobbed by crowds in Dunganstown, County Wexford, in 1963, nearly every president has beaten the same path across the Atlantic, often in an effort to seek out the ancestral home.

From peat to prairies Early and mid-18th Century: Scotch-Irish protestants from Ulster, big influence on early presidents

Scotch-Irish protestants from Ulster, big influence on early presidents 1840s onwards: Irish Catholics fleeing potato famine and poverty went to cities

Irish Catholics fleeing potato famine and poverty went to cities 1950s: Mostly farmers, some nurses

Mostly farmers, some nurses 1980s: Skilled workers escape unemployment

Skilled workers escape unemployment 2010s: Another wave expected

Ireland is the only country, apart perhaps from neighbours Mexico and Canada, so favoured. So how did it become such a magnet for leaders from the world's most powerful country?

"It's very simple, Catholic votes," says John Robert Greene, historian and author of dozens of books about US presidents.

"There's not a huge love of Irish tradition, with the possible exception of JFK and Ronald Reagan, not a huge love of Irish culture, with the possible exception of JFK, Reagan and Bill Clinton, but there's a huge love for Catholic votes and particularly Irish Catholic votes.

"That's why there is a pilgrimage every four years and that's why Obama is going."

This will play beautifully in the Rust Belt, former steelmaking cities like Buffalo, Cleveland and Detroit, says Mr Greene, and also in New York City and in parts of Massachusetts. And it guarantees exposure in the Catholic newspapers, which aren't traditional Obama supporters because of his stance on abortion.

"I doubt he really wants to be photographed in a cottage like The Quiet Man, but he will," he says, referring to the 1952 film in which John Wayne returns to Ireland to reclaim his family farm in Innisfree.

Famous Irish-Americans Writers: F Scott Fitzgerald, Eugene O'Neill, Frank McCourt

F Scott Fitzgerald, Eugene O'Neill, Frank McCourt Actors: Spencer Tracy, James Cagney, Grace Kelly

Spencer Tracy, James Cagney, Grace Kelly Dancers/singers: Gene Kelly, Michael Flatley, Rosemary Clooney

Gene Kelly, Michael Flatley, Rosemary Clooney Sports: John McEnroe, Mark McGwire, Ben Hogan

Most of the early presidents' Irish connections were to Tyrone and Antrim, through the protestants who came from Ulster in the 18th Century and settled largely in the south and west.

They later labelled themselves as Scots-Irish, to distinguish themselves from the poor Catholics fleeing the potato famine in the decades following the 1840s.

In this period, the most traumatic in Irish history, there were few votes for a president who associated himself with the new arrivals who were accused of stealing American jobs.

There's the most Irish-American president, Andrew Jackson, and then there's the most Irish in votes and that's JFK Historian John Robert Greene

Attitudes had changed by the early 20th Century, however, and then probably the most famous Irish-American of all, John F Kennedy, became president. Neither his parents or grandparents were Irish-born, but he successfully forged a cast-iron Irish identity, partly because he was the first Catholic to take the highest office.

Irish ballad Danny Boy rang out at Kennedy's political rallies and he mixed with prominent Irish Catholics like Tip O'Neill, who later became the second-longest serving House speaker in history.

"There's the most Irish-American president, Andrew Jackson, and then there's the most Irish in votes and that's JFK," says Mr Greene. "He clearly wanted the link to the Irish and he made himself more Irish than any other American president."

Since Kennedy, every president apart from Gerald Ford has claimed some Irish ancestry, he says, although in Bill Clinton's case there was not any evidence of a connection.

'Ronald Reagan sat in my lounge' Mary O'Farrell, now 64, had renamed the lounge bar of her pub after Ronald Reagan, when his Irish roots were traced to the village of Ballyporeen in 1980. Four years later, he and wife Nancy spent three hours in her pub, where he drank a pint of Smithwick's. They attended a church service, did a walkabout for the 400 people lining the street and unveiled a plaque at the newly formed Reagan Centre. Eight B&Bs were opened, two new cafes and grocery shops sold souvenirs. The tourist boom lasted six or seven years. When Reagan died in 2005, the presidential library acquired the interior of Mrs O'Farrell's pub.

One of the most rapturous visits was Ronald Reagan's to Ballyporeen in Tipperary in 1984, in which he spoke movingly about the connection he felt for the home of his great-grandfather, Michael Regan.

"He was real Irish in temperament," recalls Mary O'Farrell, who hosted the president and first lady in her pub. She had renamed one of the bars after him, which meant images of it adorned front pages around the world.

"You'd know he was Irish, he had that sense of humour and glint in his eye."

When presidents speak about their Irishness, they are only doing what millions of ordinary Americans do all the time, says Carl Shanahan, founder of Wild Geese, an organisation that promotes Irish culture in the US and worldwide.

"Being Irish doesn't hurt you at any level of society. We were never at war with Americans like the Germans, the Italians and the Japanese. In Washington's army the numbers were a third Irish or Scottish-Irish."

Polling evidence suggests it does help win votes, says Mr Shanahan, but it's not all about political calculation - there's a genuine love between the two countries, demonstrated by how many Americans view themselves as Irish, however remote the connection.

Although the power of the Irish vote is considered to be waning, there were 44 million self-identified Irish-Americans in the Census in 2000, plus 6-7 million Scottish-Irish, he says, many of whom have never set foot in the country.

"There is an affinity by association. It's the reputation of the Irish, the fighting Irish. A guy who gets off his feet and fights the battle and wins. We had boxing champs and baseball teams."

A visit can be good for trade Irish votes are not the bloc they once were and are spread across the political parties, says Martin Burke, professor of modern Irish history at City University of New York, so Mr Obama's visit may be more about trade than votes. "While a relatively small trading partner of the US, there are several large pharmaceutical and hi-tech firms in Ireland, like Pfizer and Dell, which play a major role in American exports."

Mr Shanahan, who is trying to set up an Irish-American museum in Washington DC, says the Irish story is the story of America.

"We fought their wars, opened up their territories and built their cities. There's nowhere to tell that story and if we don't tell it, then people will forget."

One demonstration of this affection is the popularity of St Patrick's Day, a celebration that is older than the American nation itself. The first parade was held in 1766, in New York, 10 years before the Declaration of Independence.

There is a sentimentality about this American view of Ireland, Mr Shanahan concedes, because immigrant groups bring an old image of the mother country that remains fixed in time and space.

But for a country with the rags-to-riches fable so tightly woven into its fabric, an immigrant story that begins with a shoemaker in Moneygall and ends in the Oval Office is too tempting to ignore.