Hamas gunmen launched an unprecedented assault on Israel from the Gaza Strip on 7 October, killing 1,200 people and taking about 240 hostages.
Israel responded with air strikes on Gaza, and launched a ground offensive. More than 14,800 people have been killed in Gaza, according to the Hamas-run government.
A four-day pause in the fighting is due to begin on Friday, during which Hamas will release 50 of the hostages. In exchange, Israel will free 150 Palestinian prisoners and allow significantly more humanitarian aid to enter Gaza.
What is the goal of Israel's military operation in Gaza?
Israel Defense Forces (IDF) warplanes are carrying out strikes across Gaza while its troops are moving through the north of the territory.
Israel's Prime Minister Benjamin Netanyahu has said it has a "clear goal of destroying Hamas's military and governing capabilities", as well as freeing the hostages.
He has also declared that Israel will have "overall security responsibility" for the Gaza Strip "for an indefinite period" after the conflict, but he has denied that he plans to reoccupy the territory.
Israel has drafted 300,000 reservists for the operation, to boost its standing force of 160,000.
The IDF says it has struck thousands of targets belonging to Hamas - which Israel, the UK, US and other Western powers class as a terrorist organisation.
The IDF also says it has destroyed hundreds of tunnel shafts built underneath Gaza. Hamas has claimed that its tunnel network stretches for 500km (310 miles).
Israel claims to have killed thousands of Hamas fighters during the war, including many commanders. More than 390 Israeli soldiers have been killed, most of them in the 7 October attack.
What is happening on the ground in Gaza, and what is the humanitarian situation?
More than 36,000 people - three quarters of them children and women - have been wounded in Gaza since the start of the war, the Hamas-run government says.
However, only two of the hospitals in the north and seven in the south are still operational due to damage caused by attacks and the lack of electricity and fuel.
Mr Netanyahu has admitted that Israel has been "not successful" in minimising civilian casualties, but insisted this is because Hamas uses Gaza's population as human shields.
Unrwa, the UN agency for Palestinian refugees, says 1.7 million Gaza residents have been displaced during the conflict, and that more almost one million have been sheltering at its facilities.
After the 7 October attack, Israel shut its border crossings with Gaza, and blocked supplies of food, most water, fuel and medicine from entering the territory. Without electricity or fuel for generators, hospitals, water pumps and desalination plants, waste and sanitation services, and bakeries cannot function.
The heads of major UN agencies said that cutting off essential supplies to 2.2 million Palestinians was an "outrage", and have repeatedly called for a ceasefire on humanitarian grounds.
Israel allowed 1,399 lorryloads of humanitarian supplies to enter via Egypt's Rafah border crossing between 21 October and 21 November, compared to a monthly average of 10,000 before the war, according to the UN.
It blocked all fuel deliveries until last week, saying it could be stolen by Hamas and used for military purposes.
Hundreds of foreign passport holders - including some British and US citizens - and seriously wounded and sick Palestinians have been allowed to leave through the crossing, but many remain. Passage remains tightly controlled by Egypt.
What happened during the Hamas 7 October attack on Israel?
On 7 October, hundreds of Hamas gunmen crossed from the Gaza Strip into southern Israel, breaking through the heavily guarded perimeter fence, landing by sea, and using paragliders.
The gunmen killed about 1,200 people, most of them civilians, in a series of raids on military posts, kibbutzim and a music festival, and took hostages back into Gaza.
Earlier estimates put the death toll at more than 1,400.
The attack came at a time of soaring Israeli-Palestinian tensions: 2023 has been the deadliest on record for Palestinians who live in the Israeli-occupied West Bank.
Who are the hostages and how will the ceasefire work?
Hamas is holding about 240 hostages, which it says it has hidden in "safe places and tunnels" within Gaza.
It is thought they were taken to pressure Israel into freeing some of the estimated 5,100 Palestinians held in Israeli prisons at the start of October.
Israel says more than 30 of the captives are children, and at least 10 are aged over 60.
Hamas had released four hostages before the truce agreement was agreed on Wednesday.
The Israeli military rescued one hostage and recovered the bodies of two others during its operations in northern Gaza.
Under a deal brokered by Qatar, the two sides have agreed a four-day pause in the fighting during which Hamas will release 50 hostages in exchange for 150 Palestinians prisoners.
Israel says that for every 10 hostages released in addition to the initial 50, it will extend the truce by another day.
What is Hamas and what does it want?
Hamas is a Palestinian group which has run Gaza since 2007.
The name is an acronym for Harakat al-Muqawama al-Islamiya, which means Islamic Resistance Movement.
The group wants to destroy Israel and replace it with an Islamic state.
Its military wing, the Izzedine al-Qassam Brigades, is thought to have about 30,000 members.
Hamas has fought several wars with Israel since it took power, firing thousands of rockets into Israel and carrying out other deadly attacks.
In response, Israel has repeatedly attacked Hamas with air strikes, sending in troops in 2008 and 2014.
Hamas - or in some cases the al-Qassam Brigades - has been designated a terrorist group by Israel, the US, the EU and the UK, as well as other powers.
Iran backs the group, providing funding, weapons and training.
Where is the Gaza Strip and how big is it?
The Gaza Strip is a 41km (25-mile) long and 10km-wide territory located between Israel, Egypt and the Mediterranean Sea.
Previously occupied by Egypt, Gaza was captured by Israel during the 1967 Six-Day War.
Israel withdrew its troops and around 7,000 settlers from the territory in 2005.
Home to 2.2 million people, the narrow strip is one of the most densely-populated areas in the world.
Just over three-quarters of Gaza's population - some 1.7 million people - are registered refugees or descendants of refugees, according to the UN.
Before the latest conflict, more than 500,000 people lived in eight refugee camps located across the Strip.
Israel controls the air space over Gaza and its shoreline, and strictly limits the movement of people and goods.
What is Palestine?
The West Bank and Gaza are known as the Palestinian territories. Along with East Jerusalem and Israel, they formed part of a land known as Palestine from Roman times until the mid-20th Century.
These were also the lands of Jewish kingdoms in the Bible and are seen by many Jews as their ancient homeland.
Israel was declared a state in 1948, although the land is still referred to as Palestine by those who do not recognise the country's right to exist.
The Palestinian president is Mahmoud Abbas, also known as Abu Mazen. He is based in the West Bank, which is under Israeli occupation.
He has been the leader of the Palestinian Authority (PA) since 2005, and represents the Fatah political party - a bitter rival of Hamas.