Basketball at the 2012 Summer Olympics – Men's tournament

The men's basketball tournament at the 2012 Summer Olympics in London, began on 29 July and ended on 12 August, when the United States defeated Spain 107–100 for the gold medal. All preliminary games were held at the Basketball Arena within the Olympic Park, while the knockout matches took place at The O2 Arena (renamed North Greenwich Arena due to the IOC's commercialisation policy).

Competition format
Twelve qualified nations were drawn into two groups, each consisting of six teams. Each game result merits a corresponding point: In case teams are tied on points, the tiebreaking criteria are used, in order of first application:
 * A team cannot put forward at least five players at the start of the game, or its own actions prevent play from being resumed.
 * 1) Results of the games involving the tied teams (head-to-head records)
 * 2) Goal average of the games involving the tied teams
 * 3) Goal average of all of the games played
 * 4) Points scored
 * 5) Drawing of lots

The teams with the four best records qualified for the knockout stage, which was a single-elimination tournament. The semifinal winners contested for the gold medal, while the losers played for the bronze medal.

Preliminary round
All times are British Summer Time (UTC+1).

Group A
















<section begin=A8 /><section end=A8 />

<section begin=A9 /><section end=A9 />

<section begin=A10 /><section end=A10 />

<section begin=A11 /><section end=A11 />

<section begin=A12 /><section end=A12 />

<section begin=A13 /><section end=A13 />

<section begin=A14 /><section end=A14 />

<section begin=A15 /><section end=A15 />

Group B
<section begin=B /><section end=B />

<section begin=B1 /><section end=B1 />

<section begin=B2 /><section end=B2 />

<section begin=B3 /><section end=B3 />

<section begin=B4 /><section end=B4 />

<section begin=B5 /><section end=B5 />

<section begin=B6 /><section end=B6 />

<section begin=B7 /><section end=B7 />

<section begin=B8 /><section end=B8 />

<section begin=B9 /><section end=B9 />

<section begin=B10 /><section end=B10 />

<section begin=B11 /><section end=B11 />

<section begin=B12 /><section end=B12 />

<section begin=B13 /><section end=B13 />

<section begin=B14 /><section end=B14 />

<section begin=B15 /><section end=B15 />

Knockout round
<section begin="Bracket"/><section end="Bracket"/>

Quarterfinals
<section begin=C1 /><section end=C1 />

<section begin=C2 /><section end=C2 />

<section begin=C3 /><section end=C3 />

<section begin=C4 /><section end=C4 />

Semifinals
<section begin=D1 /><section end=D1 />

<section begin=D2 /><section end=D2 />

Bronze medal match
<section begin=E1 /><section end=E1 />

Gold medal match
<section begin=E2 /><section end=E2 />

ESPN All-Olympics Teams
Honorable Mentions: 
 * 🇦🇷 Carlos Delfino
 * 🇧🇷 Leandro Barbosa
 * 🇨🇳 Yi Jianlian
 * 🇫🇷 Nicolas Batum
 * 🇫🇷 Boris Diaw
 * Joel Freeland
 * 🇷🇺 Alexey Shved
 * 🇪🇸 Marc Gasol
 * 🇺🇸 Chris Paul
 * 🇺🇸 Kevin Love

Final standings
Rankings are determined by:
 * 1st–4th
 * Results of gold and bronze medal games.
 * 5th–8th:
 * Win–loss record in the preliminary round group
 * Standings in the preliminary round group (i.e. Group A's #3 is ranked higher than Group B's #4.)
 * Goal average in the preliminary round group
 * 9th–10th and 11th–12th:
 * 5th placers in the preliminary round groups are classified 9th–10th; 6th placers classified *11th–12th
 * Win–loss record in the preliminary round group
 * Goal average in the preliminary round group