A cell selection method, comprising: receiving, by a terminal, a configuration message sent by a network side, wherein the configuration message comprises frequency information; determining, by the terminal, a first measurement frequency based on locally stored prior historical information and the configuration message, wherein the locally stored prior historical information comprises historically camped cell information, a historically camped cell corresponding to the first measurement frequency comprises a 5G anchor cell, and the 5G anchor cell is a Long Term Evolution, LTE, cell that uses a 5G cell as a secondary cell; performing, by the terminal, cell measurement on the first measurement frequency, and obtaining a measurement result of the first measurement frequency, wherein the measurement result comprises first cell identity information and a first cell measurement result corresponding to the first cell identity information; determining, by the terminal based on the prior historical information and the first cell identity information, whether the first cell is a 5G anchor cell; if the first cell is a 5G anchor cell and meets a preferred condition, evaluating the first cell based on first preset duration; or if the first cell is not a 5G anchor cell, evaluating the first cell based on second preset duration, wherein the second preset duration is greater than the first preset duration; and when an evaluation result of the first cell meets a preset condition, camping, by the terminal, on the first cell, or reporting, by the terminal, the measurement result of the first cell to a base station. receiving, by a terminal, a configuration message sent by a network side, wherein the configuration message comprises frequency information; determining, by the terminal, a first measurement frequency based on locally stored prior historical information and the configuration message, wherein the locally stored prior historical information comprises historically camped cell information, a historically camped cell corresponding to the first measurement frequency comprises a 5G anchor cell, and the 5G anchor cell is a Long Term Evolution, LTE, cell that uses a 5G cell as a secondary cell; performing, by the terminal, cell measurement on the first measurement frequency, and obtaining a measurement result of the first measurement frequency, wherein the measurement result comprises first cell identity information and a first cell measurement result corresponding to the first cell identity information; determining, by the terminal based on the prior historical information and the first cell identity information, whether the first cell is a 5G anchor cell; if the first cell is a 5G anchor cell and meets a preferred condition, evaluating the first cell based on first preset duration; or if the first cell is not a 5G anchor cell, evaluating the first cell based on second preset duration, wherein the second preset duration is greater than the first preset duration; and when an evaluation result of the first cell meets a preset condition, camping, by the terminal, on the first cell, or reporting, by the terminal, the measurement result of the first cell to a base station.