Match ends, Brentford 4, Rotherham United 2.
Jota scored a hat-trick as Brentford beat Championship strugglers Rotherham.
The Spaniard scored from the penalty spot and on the counter-attack in injury time to wrap up the points and net his first hat-trick for the club.
Earlier, he gave Brentford the lead from a tight angle before Rotherham levelled through Aimen Belaid's header.
Nico Yennaris turned in Ryan Woods' cross and Anthony Forde's long-shot made it 2-2, but Semi Ajayi's handball allowed Jota to claim the victory.
Jota was recalled early from a loan spell at Spanish side Eibar in January and has been in fine form since his return.
The 25-year-old's contribution was telling against bottom side Rotherham, who were denied just a second point on the road this season.
Playing as a forward because of an injury to Lasse Vibe, he found the bottom corner after good work from Florian Jozefzoon to set the Bees on their way.
Despite their perilous position, the Millers fought back admirably and Daniel Bentley was forced to save one-on-one from Danny Ward, while Ajayi and Jon Taylor also had chances.
After Belaid and Yennaris traded goals, substitute Forde looked to have made a telling contribution with his 25-yard strike - but it was Jota who had the final say in added time.
He placed his penalty down the middle to make it 3-2 before rounding off a move on the break to take his side up to 13th and condemn Rotherham to a seventh defeat in their last eight league games.
Brentford manager Dean Smith:
"Jota has saved it for us late on. He is a terrific player and I have not worked with a player with such good balance.
"When we move the ball quickly we look at our most effective and always look like scoring, but I wish we didn't have these five-minute spells where they have chances.
"We were in total control in the first half but after the break they got a little lift and we got a bit sloppy and gave too many cheap free-kicks away, which I was disappointed with because we'd spoken about their threat from set-pieces."
Rotherham interim manager Paul Warne told BBC Radio Sheffield:
"The result wasn't fair on us. I don't think it flattered us when it was 2-2. I thought we played really well and I told the lads they had to take pride in their performance.
"I'm not going to say we are down until we are down but we are all realists. I think we have a responsibility to our fans, our sponsors, our chairman and our families to perform every week.
"I think if you came here today and said my lads had given up then you'd been drinking heavily before you came in."
- 17KerschbaumerSubstituted forShaibuat 77'minutes
- 8YennarisBooked at 34mins
- 7JozefzoonSubstituted forCanosat 71'minutes
- 26BelaidSubstituted forMattockat 83'minutes
- 11TaylorBooked at 16mins
- 33SmallwoodSubstituted forBlackstockat 86'minutes
- 22NewellSubstituted forFordeat 60'minutes
- Andy Davies
- Shots on Target
Second Half ends, Brentford 4, Rotherham United 2.
Goal! Brentford 4, Rotherham United 2. Jota (Brentford) right footed shot from the centre of the box to the centre of the goal following a fast break.
Attempt saved. Sergi Canos (Brentford) left footed shot from outside the box is saved in the centre of the goal. Assisted by Romaine Sawyers.
Foul by Andreas Bjelland (Brentford).
Dexter Blackstock (Rotherham United) wins a free kick in the attacking half.
Goal! Brentford 3, Rotherham United 2. Jota (Brentford) converts the penalty with a left footed shot to the high centre of the goal.
Penalty conceded by Semi Ajayi (Rotherham United) with a hand ball in the penalty area.
Rico Henry (Brentford) wins a free kick in the defensive half.
Foul by Dexter Blackstock (Rotherham United).
Goal! Brentford 2, Rotherham United 2. Anthony Forde (Rotherham United) right footed shot from outside the box to the bottom right corner.
Corner, Rotherham United. Conceded by Maxime Colin.
Substitution, Rotherham United. Dexter Blackstock replaces Richard Smallwood.
Foul by Justin Shaibu (Brentford).
Anthony Forde (Rotherham United) wins a free kick on the right wing.
Attempt missed. Will Vaulks (Rotherham United) right footed shot from outside the box is too high following a set piece situation.
Foul by Andreas Bjelland (Brentford).
Danny Ward (Rotherham United) wins a free kick in the defensive half.
Substitution, Rotherham United. Joe Mattock replaces Aimen Belaid.
Hand ball by Anthony Forde (Rotherham United).