The Bahamians jumped out to a 31-16 lead at the end of the first quarter before a tight second quarter meant the Caribbean nation enjoyed a 50-36 lead at halftime.
Lebanon had a much better defensive showing in the third quarter, holding the Bahamas to only 13 points while scoring 18 of their own to cut the deficit to 63-54 heading into the fourth quarter.
The Bahamas were back to their dominating best in the final stanza, however, winning 26-18 for a final score of 89-72.
Ayton, in his 32 minutes of action, went 11-15 from the field on his way to a top score of 24 points to go along with 15 rebounds.
Warriors guard Buddy Hield contributed 19 points while VJ Edgecombe and Eric Gordon had 13 points, each.
Sergio El Darwich had 22 points, five rebounds and three assists for Lebanon.
Their opponent in Sunday’s final will be the winner of the semi-final between Spain and Finland.
At the time of publishing, Spain were ahead 38-30 at halftime.
Deandre Ayton, the Portland Trail Blazers' centre, delivered a commendable performance with 17 points on 8-14 shooting, 14 rebounds, and two assists in 36 minutes of play. Ayton's efforts throughout the FIBA Qualifying Tournament in Valencia were notable, as he averaged 19.5 points and 11.8 rebounds per game while shooting an impressive 64.2 per cent from the field.
Buddy Hield, recently acquired by the Golden State Warriors, led The Bahamas in scoring during the final with 19 points, while new Philadelphia 76ers signee Eric Gordon contributed 15 points.
For Spain, former Blazer Rudy Fernandez, 39, added nine points, two rebounds, and two assists. Guard Lorenzo Brown was the top scorer for Spain, registering 18 points, including 4-5 shooting from beyond the arc.
Entering the final as underdogs, The Bahamas put up a valiant fight but struggled to recover from a crucial 25-17 second quarter in favour of Spain, which ultimately proved to be the difference in the game.
Spain's significant free-throw advantage also played a pivotal role, as they shot 23-25 from the charity stripe compared to The Bahamas' 10-13. Additionally, Spain's superior ball handling was evident, winning the turnover battle 15-11.
Despite the loss, The Bahamas showed fight. Ayton's standout performances, coupled with solid contributions from Hield and Gordon, underscore a promising future for Bahamian basketball on the international stage.
The team’s valiant effort in Valencia marks a significant step forward, and while they fell just short of an Olympic berth, the experience gained and the competitive spirit displayed bode well for future international competitions.