Israel has offered to help Kenya secure its borders as it tackles Somalia's Islamist group, al-Shabab, the Kenyan prime minister's office has said.
It said Kenya got the backing of Israel to "rid its territory of fundamentalist elements" during Prime Minister Raila Odinga's visit to the country.
Last month, Kenya sent troops to neighbouring Somalia to defeat al-Shabab, which is linked to al-Qaeda.
It blames the militants for a spate of abductions on its side of the border.
In a statement, Mr Odinga's office quotes Israel's Prime Minister Benjamin Netanyahu as saying that "Kenya's enemies are Israel's enemies".
"We have similar forces planning to bring us down," he is is quoted as saying. "I see it as an opportunity to strengthen ties."
At least 15 people were killed in a suicide bombing on an Israeli-owned hotel in the Kenyan coastal resort of Mombasa in 2002.
Four years earlier, more than 200 people were killed in co-ordinated bomb blasts on the US embassies in Kenya and Tanzania.
Al-Qaeda carried out the attacks, with some of its senior members operating from Somalia.
Mr Odinga - who is accompanied on the visit by Internal Security Minister George Saitoti - said Israel could help Kenya's police force detect and destroy al-Shabab's networks in Kenya.
Kenya also needed Israel to provide vehicles for border patrols and equipment for sea surveillance to curb piracy off the East African coast, he said.
"We need to be able to convincingly ensure homeland security," Mr Odinga said.
The statement quoted Mr Netanyahu as promising to help build a "coalition against fundamentalism" in East Africa, incorporating Kenya, Ethiopia, South Sudan and Tanzania.
Israel's President Shimon Peres had promised to "make everything available" to Kenya to guarantee its security within its borders, the statement said.
"Consistently, Kenya has shown a very positive attitude towards Israel and Israel is ready to help," the statement quotes Mr Peres saying.
Kenya accuses al-Shabab of abducting several people from its territory since September - including an elderly French woman who suffered from cancer. French authorities say she has since died in Somalia.
Al-Shabab denies involvement in the abductions and has vowed to retaliate against Kenya for sending troops into Somalia. It has accused the Kenyan army of killing civilians.
Last month, a Kenyan man, Elgiva Bwire Oliacha, told a court in Nairobi that he was an al-Shabab member.
He pleaded guilty to carrying out grenade attacks on a nightclub and bus stop in the city, leaving one person dead and 29 others wounded.
Somalia has been without an effective government since 1991, with al-Shabab controlling most of the southern and central regions.