A resource allocation method, wherein the method comprises: determining (S801, S1001), by a network device , a bandwidth part allocated to a terminal device , wherein the bandwidth part comprises a first bandwidth part; determining (S802, S1002), by the network device, a first value, wherein the first value is used to indicate a resource block group, RBG, size corresponding to the first bandwidth part, or the first value is used to determine a resource indication value, RIV, set corresponding to the first bandwidth part; and sending (S803, S1003), by the network device, first indication information to the terminal device, wherein the first indication information is used to indicate the first value; characterized in that : when the first value is used to indicate a RBG size, the network device determines the first value based on a nominal RBG size of a second bandwidth part so that some RBGs in the first bandwidth part are aligned with some RBGs in the second bandwidth part; or when the first value is used to determine a RIV set, the network device determines the first value so that a starting VRB in a VRB set determined based on a RIV in the RIV set is aligned with a starting or ending VRB in an RBG in the second BWP and/or an ending VRB in the VRB set is aligned with a starting or ending VRB in an RBG in the second BWP. determining (S801, S1001), by a network device , a bandwidth part allocated to a terminal device , wherein the bandwidth part comprises a first bandwidth part; determining (S802, S1002), by the network device, a first value, wherein the first value is used to indicate a resource block group, RBG, size corresponding to the first bandwidth part, or the first value is used to determine a resource indication value, RIV, set corresponding to the first bandwidth part; and sending (S803, S1003), by the network device, first indication information to the terminal device, wherein the first indication information is used to indicate the first value; characterized in that : when the first value is used to indicate a RBG size, the network device determines the first value based on a nominal RBG size of a second bandwidth part so that some RBGs in the first bandwidth part are aligned with some RBGs in the second bandwidth part; or when the first value is used to determine a RIV set, the network device determines the first value so that a starting VRB in a VRB set determined based on a RIV in the RIV set is aligned with a starting or ending VRB in an RBG in the second BWP and/or an ending VRB in the VRB set is aligned with a starting or ending VRB in an RBG in the second BWP. when the first value is used to indicate a RBG size, the network device determines the first value based on a nominal RBG size of a second bandwidth part so that some RBGs in the first bandwidth part are aligned with some RBGs in the second bandwidth part; or when the first value is used to determine a RIV set, the network device determines the first value so that a starting VRB in a VRB set determined based on a RIV in the RIV set is aligned with a starting or ending VRB in an RBG in the second BWP and/or an ending VRB in the VRB set is aligned with a starting or ending VRB in an RBG in the second BWP. <EOS>