Shafik Wazzan, 74, the Lebanese prime minister who oversaw the 1982 withdrawal of Palestinian guerrillas from Israeli-beseiged Beirut, died of a heart attack July 8 at his home here. He had diabetes.

Mr. Wazzan was forced from office in the early 1980s as the civil war continued.

But he emerged in recent years from the political wilderness and will be recognized with a state funeral.

Mr. Wazzan, a Sunni Muslim lawyer, was thrust into the nation's second-most powerful office as a compromise prime minister on Oct. 25, 1980, after Lebanon had been without a government for 137 days at the height of the 1975-90 civil war.

When Israel invaded Lebanon in June 1982 and besieged Beirut to force Palestine Liberation Organization guerrillas out, Mr. Wazzan's government acted as intermediary between the United States and the PLO.

The negotiations eventually led to the deployment of U.S. Marines as part of a multinational peacekeeping force and the withdrawal of thousands of Palestinian and Syrian fighters from Beirut to avert a showdown in the Muslim sector.

But a bloodbath happened anyway after the fighters were evacuated and the multinational force left.

Christian militiamen entered the undefended Palestinian refugee camps and killed hundreds of civilians to avenge the assassination of their pro-Israeli chief, President-elect Bashir Gemayel.

Mr. Wazzan's government negotiated an Israeli withdrawal from Lebanon in 1983, but the deal was never implemented. That resulted in Israeli troops remaining in a border zone in southern Lebanon, waiting to negotiate another deal with Lebanon.

The Marines returned to Beirut but left again in 1984 after attacks by Muslim militants--including a suicide bombing that killed 241 servicemen.

The deal with Israel earned Mr. Wazzan wrath within his Muslim community, and the prime minister was boycotted by Muslim leaders.

He was forced from office in 1984 and never fully recovered politically.

Survivors include his wife, a son and a daughter.