Wireless local area network (WLAN) uses a medium access control method based on the carrier sense multiple access with collision avoidance (CSMA/CA). In CSMA/CA, each station maintains a contention window by adjusting its size according to the perceived contention level. By making a station autonomously choose a waiting time randomly, using its current contention window size, CSMA/CA resolves the channel contention problem among a set of stations in a distributed manner. However, because the contention window size is limited, the packet collision probability increases sharply as the number of stations, with data to send, increases. To resolve this problem, we propose a novel medium access control method using a minority game. In the proposed method, each station learns the current contention level in a distributed manner and decides whether to send a packet using the acquired knowledge to decrease its packet collision probability. Through simulation studies, we show that compared with CSMA/CA and random selection methods, the proposed method decreases both the packet collision probability and the time interval between successful packet transmissions.