The structure 不…也… is used to express that one action will be done, even if another action has to be sacrificed.
The subject is placed at the beginning of a sentence before the construction. 不 and 也 are followed by predicates expressed by verbs.
Action 1 is usually the action that a person sacrifices for Action 2.
I'd rather finish my thesis than sleep
wǒ bú shuìjiào yě yào xiěwán wǒ de lùnwén
I'd rather help him than rest
wǒ bù xiūxi yě yào bāngzhù tā
He'd rather play computer games than do his homework