A random access method, applied to user equipment UE, wherein the method comprises: working, by the UE, on a first bandwidth part BWP, wherein the first BWP is a currently active BWP; and when the UE needs to perform a random access procedure, performing, by the UE, the random access procedure on an initial BWP if the first BWP does not meet a condition for performing a random access procedure and when the initial BWP meets the condition for performing a random access procedure, wherein the initial BWP is indicated by a network device in system information; or performing, by the UE, the random access procedure on the first BWP if the first BWP meets a condition for performing a random access procedure; and the method further comprises: when the UE performs the random access procedure on the first BWP, receiving, by the UE, BWP switching indication information sent by the network device, wherein the BWP switching indication information is used to instruct the UE to use a second BWP; and continuing, by the UE, to perform the random access procedure on the first BWP; or stopping, by the UE, performing the random access procedure on the first BWP, and initiating, by the UE, the random access procedure on the second BWP when the second BWP meets the condition for performing a random access procedure, wherein the UE chooses whether to continue to complete the random access procedure on the first BWP, or switch to the second BWP to complete the random access procedure based on a preset selection condition if both the first BWP and the second BWP meet the condition for performing a random access procedure. working, by the UE, on a first bandwidth part BWP, wherein the first BWP is a currently active BWP; and when the UE needs to perform a random access procedure, performing, by the UE, the random access procedure on an initial BWP if the first BWP does not meet a condition for performing a random access procedure and when the initial BWP meets the condition for performing a random access procedure, wherein the initial BWP is indicated by a network device in system information; or performing, by the UE, the random access procedure on the first BWP if the first BWP meets a condition for performing a random access procedure; and the method further comprises: when the UE performs the random access procedure on the first BWP, receiving, by the UE, BWP switching indication information sent by the network device, wherein the BWP switching indication information is used to instruct the UE to use a second BWP; and continuing, by the UE, to perform the random access procedure on the first BWP; or stopping, by the UE, performing the random access procedure on the first BWP, and initiating, by the UE, the random access procedure on the second BWP when the second BWP meets the condition for performing a random access procedure, wherein the UE chooses whether to continue to complete the random access procedure on the first BWP, or switch to the second BWP to complete the random access procedure based on a preset selection condition if both the first BWP and the second BWP meet the condition for performing a random access procedure. when the UE performs the random access procedure on the first BWP, receiving, by the UE, BWP switching indication information sent by the network device, wherein the BWP switching indication information is used to instruct the UE to use a second BWP; and continuing, by the UE, to perform the random access procedure on the first BWP; or stopping, by the UE, performing the random access procedure on the first BWP, and initiating, by the UE, the random access procedure on the second BWP when the second BWP meets the condition for performing a random access procedure, wherein the UE chooses whether to continue to complete the random access procedure on the first BWP, or switch to the second BWP to complete the random access procedure based on a preset selection condition if both the first BWP and the second BWP meet the condition for performing a random access procedure.