Left-arm spinner Taijul Islam was the pick of the bowlers with four wickets
Afghanistan were all out for 342 in the first innings of their one-off Test against Bangladesh on Friday, with the visitors adding 71 to their overnight score of 271-5.
Skipper Rashid Khan was the last man dismissed after scoring 51 off 61 as Afghanistan were bowled out in the first session of the second day at the Zahur Ahmed Chowdhury Stadium in Chittagong.
Left-arm spinner Taijul Islam was the pick of the bowlers with four wickets for Bangladesh giving away 116 runs.
On day one, Afghanistan spinner Rashid Khan became the youngest player ever to captain a Test team when he led his side in their one-off match against Bangladesh in Chattogram on Thursday.
Aged 20 years and 350 days when he walked out for the toss on the first day, Rashid broke a 15-year record held by former Zimbabwe wicketkeeper Tatenda Taibu, who was eight days older when he led his side against Sri Lanka in Harare in 2004.
Rashid was appointed Afghanistan's captain across all three formats of the game in July after the team's dismal performance at the 50-over World Cup, where they lost all nine of their group matches and finished at the bottom of the standings.